<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2019/10/21
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        #d1{
            position:absolute;
            left:600px;
            top:2px;
            padding: 30px;
            margin: 10px;
        }

    </style>
</head>
<body>
<div id="d1">
    <h2>添加账号</h2>
    <form action="/insert.do" method="post" id="f1" enctype="multipart/form-data">
        <label>用户名:</label><input type="text" name="username"/><br>
        <label>&nbsp;  密码:&nbsp;</label><input type="password" name="password"/><br>
        <label>&nbsp;  昵称:&nbsp;</label><input type="text" name="nickname"/><br>
        <label>&nbsp;  年龄:&nbsp;</label><input type="text" name="age"/><br>
        <label>&nbsp;  性别:&nbsp;</label>
        <select name="sex">
            <option>请选择</option>
            <option value ="0">男</option>
            <option value ="1">女</option>
        </select><br>
        <label>&nbsp;   手机:&nbsp;</label><input type="text" name="mobile"/><br>
        <label>&nbsp;   地址:&nbsp;</label><input type="text" name="address"/><br>
        <label>&nbsp;   头像:&nbsp;</label><input type="file" name="picpath"/><br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="保存数据" style="background: lightskyblue;"/>
        &nbsp;&nbsp;&nbsp;<a href="/queryAll.do"><button style="background: skyblue;">返回</button></a>
        <span>${errormsg}</span>
        <span>${msg}</span>
    </form>
</div>
</body>
</html>
